<?php 
require_once("auth.php");
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $pagetitle; ?></title>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<link href="testcss.css" rel="stylesheet" />
		<link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
	<link type="text/css" rel="stylesheet" href="static/css/bootstrap.min.css" />
		<link type="text/css" rel="stylesheet" href="static/css/main.css" />
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
		<script type="text/javascript" src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>

<style>
#status{
width:700px;
text-align:center;
font:Calibri, Arial;
font-size:16px;
color:#FF3366;
}



</style>



</head>
<body  style="margin-top:0px; background-color:#3D6FC4">
<table width="72%"  align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr><td width="96%"><img src="electron.png"  /> </td>
<td width="4%" align="right" valign="bottom"><a href="logout.php">Logout</a></td></tr>
<tr  bgcolor="#545454" style="height:44px"  ><td colspan="2"  style="">
<?php include("dropdown.html"); ?>
</td></tr>
<tr><td colspan="2"><?php
if(isset($_REQUEST['deleted'])||isset($_REQUEST['added'])||isset($_REQUEST['updated']))
{
if(isset($_REQUEST['deleted']))
{$x=$_REQUEST['deleted'];
}elseif(isset($_REQUEST['added']))
{$x=$_REQUEST['added'];
}else
{
if(isset($_REQUEST['updated']))
{
$x=$_REQUEST['updated'];
}
}
?>
 <div class="alert alert-success">
					    <button type="button" class="close">&#967;</button>
					    An Item has been successfuly <?php echo $x; ?>.
				    </div>
					<?php
					}
					?></td></tr>
<tr>
<td  colspan="2">
<br />
<?php
echo $pagemaincontent; 
?></td></tr>
<tr>
<td>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</td>
</tr>
</table>
</body>
</html>

 <div id="delete-box" class="modal hide fade">
			    <div class="modal-header">
				    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				    <h3>Delete</h3>
			    </div>
			    <div class="modal-body">
				    
			    </div>
<script type="text/javascript" src="../../static/js/bootstrap.js"></script>
		<script type="text/javascript">
			$(function(){
				$(".close").click(function(){
					$(this).closest(".alert").slideUp();
				});
				$(".error").removeClass('error', 'slow');
				$(".delete-link").click(function(){
					$("#delete-box").modal({'show':true });
					$.get(this.href, function(data){
						$("#delete-box").find(".modal-body").html($(data).find("form"));
					});
					return false;
				});
			});
		</script>
